namespace Shop.Model.View.Admin.JurUser;

/// <summary>
/// 用户信息
/// </summary>
public class SysUserInforVo
{
    /// <summary>
    /// 主键
    /// </summary>
    public long Id { get; set; }
    /// <summary>
    /// 账号
    /// </summary>
    public string Account { get; set; } = null!;
    /// <summary>
    /// 用户名
    /// </summary>
    public string? Name { get; set; }
    /// <summary>
    /// 性别 1:男 2 :女
    /// </summary>
    public int Sex { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }
    /// <summary>
    /// 状态 -1 删除 0 正常 1 冻结
    /// </summary>
    public int State { get; set; }

    /// <summary>
    /// 用户的角色
    /// </summary>
    public List<UserRoleVo> Roles { get; set; }
}
/// <summary>
/// 
/// </summary>
public class UserRoleVo
{
    /// <summary>
    /// 角色ID
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 角色名称
    /// </summary>
    public string Name { get; set; }
}